﻿using System.Windows.Forms;

namespace ComputerVision.BaseForm
{
    public partial class frmObject : Form
    {
        public frmObject()
        {
            InitializeComponent();
            ControlBox = false;
        }

        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            try
            {
                switch (keyData)
                {
                    case Keys.Escape:
                        Close();
                        return true;
                }
                return base.ProcessCmdKey(ref msg, keyData);
            }
            catch
            {
                return false;
            }
        }
    }
}